package ai.wprolog.outmsg;

public class Messenger implements Output {
	//Constants:
	private final String LN = "\n";
	//Attributes:
	private StringBuffer buff;
	//Constructor:
	public Messenger(){
		this.reset();
	}
	//Methods:
	public void msg(String msg) {
		this.buff.append(msg);
	}
	public void msgLn(String msg) {
		this.msg(msg+this.LN);
	}
	public String toString(){
		return this.buff.toString();
	}
	public void select(int from, int to) {
		//Ignored...
	}
	public void reset() {
		this.buff = new StringBuffer();
	}
	
}
